using System;

namespace Mbs.Messaging
{
    [Serializable]
    public class MessageEventArgs
    {
        public object Sender { get; internal set; }
        public object Message { get; internal set; }
        public string Topic { get; private set; }

        public MessageEventArgs(object sender, object message, string topic)
        {
            Sender = sender;
            Message = message;
            Topic = topic;
        }

        public override string ToString()
        {
            return Topic + "\t" + Message.ToString();
        }
    }
}
